package com.chenliang.nacos.service;

import com.chenliang.nacos.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: springcloud_all
 * @description:
 * @author: 陈亮
 * @create: 2022-04-04 15:53
 */

/**
 * name-->远程调用微服务的名称
 * path-->controller的requestMapping路径
 */
@FeignClient(name = "nacos-8082", path = "/nacos8082")
public interface NacosService {


    @RequestMapping("/getInfo")
    String getInfo();
}
